﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000EA RID: 234
	public class TAlterShareStmt : TCustomSqlStatement
	{
		// Token: 0x060007F4 RID: 2036 RVA: 0x003015A9 File Offset: 0x002FF7A9
		public void setShareName(TObjectName shareName)
		{
			this.shareName = shareName;
		}

		// Token: 0x060007F5 RID: 2037 RVA: 0x003015B2 File Offset: 0x002FF7B2
		public TObjectName getShareName()
		{
			return this.shareName;
		}

		// Token: 0x060007F6 RID: 2038 RVA: 0x003015BA File Offset: 0x002FF7BA
		public TAlterShareStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterShare;
		}

		// Token: 0x060007F7 RID: 2039 RVA: 0x003015D0 File Offset: 0x002FF7D0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.shareName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060007F8 RID: 2040 RVA: 0x0030160D File Offset: 0x002FF80D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007F9 RID: 2041 RVA: 0x0030161D File Offset: 0x002FF81D
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011F8 RID: 4600
		private TObjectName shareName;
	}
}
